package com.lzy.crm.service;

import java.util.List;

import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.ProfitCriteria;
import com.lzy.crm.domain.Profit;
import com.lzy.crm.domain.User;
import com.lzy.crm.vo.ProfitVo;

public interface ProfitService  extends  BaseService<Profit, ProfitCriteria>{
	
	/**
	 * 查询分成明细
	 * @param userId
	 * @param pageQuery
	 * @return
	 */
	public List<ProfitVo> getProfit(Integer puId,String uid,PageQuery pageQuery);
	
	/**
	 * 统计时间段总分润数
	 * @param parentId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	public Integer getProfitStat(Integer parentId,String startTime,String endTime);
	
	/**
	 * 查询打过的局数
	 * @param userId
	 * @return
	 */
	public Integer getProfitGameCount(Integer userId,String startTime,String outStartTime,String outEndTime);
	
	
	/**
	 *申请体现功能
	 * @param user
	 * @return
	 */
	public Integer player_kiting(User user);
	

}
